package org.teachertools.web.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.teachertools.web.struts.BaseActionForm;

public class LoginForm extends BaseActionForm {
    private static final long serialVersionUID = 5705064292686178465L;

    private java.lang.String login;
    private java.lang.String password;
    private Boolean isUpdate;

    public java.lang.String getLogin() {
        return this.login;
    }

    public void setLogin(java.lang.String pLogin) {
        this.login = pLogin;
    }

    public java.lang.String getPassword() {
        return this.password;
    }

    public void setPassword(java.lang.String pPassword) {
        this.password = pPassword;
    }

    public Boolean getIsUpdate() {
        return this.isUpdate;
    }

    public void setIsUpdate(Boolean isUpdate) {
        this.isUpdate = isUpdate;
    }

    @Override
    public void reset() {
        this.login = null;
        this.password = null;
        this.isUpdate = Boolean.FALSE;
    }

    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        return new ActionErrors();
    }
}
